Piwik\CronArchive D

Total Complexity 194
Dependencies 47
Dependents 10
Total lines 1,066
Lines of code 711
Logical lines of code 497
Comment lines 256
Methods 50
Properties 36

Methods 50

Method Rating Maintainability Complexity Lines of code
run()
A
40 13 57
hasReachedMaxConcurrentArchivers()
A
50 15 23
invalidateWithSegments()
A
44 13 42
repairInvalidationsIfNeeded()
A
44 13 39
launchArchivingFor()
A
39 11 63
invalidateArchivedReportsForSitesThatNeedToBeArchivedAgainImpl()
A
44 9 44
logArchiveTimeoutInfo()
A
49 9 27
generateUrlToArchiveFromArchiveInfo()
A
50 8 27
loadCustomDateRangeToPreProcess()
S
52 7 24
canWeSkipInvalidatingBecauseThereIsAUsablePeriod()
S
57 6 13
init()
S
51 5 26
logNetworkError()
S
56 4 19
getCustomDateRangeToPreProcess()
S
58 4 15
printPerformanceStatsForProcess()
S
58 4 15
logArchiveJobFinished()
S
65 5 6
wasSegmentChangedRecently()
S
60 4 13
makeWebsiteIdArchiveList()
S
62 4 11
main()
S
58 3 17
getLastInvalidationTime()
S
58 3 16
end()
S
60 3 13
makeRequestUrl()
S
62 3 11
logError()
S
61 3 11
getVisitsRequestUrl()
S
63 3 10
checkResponse()
S
69 3 6
runScheduledTasks()
S
60 2 14
invalidateRecentDate()
S
57 2 14
__construct()
S
61 2 11
isSegmentAvailable()
S
65 2 9
getVisitsFromApiResponse()
S
71 2 6
disconnectDb()
S
66 2 8
logSection()
S
72 2 6
filterWebsiteIds()
S
67 2 7
getMaxConcurrentApiRequests()
S
72 2 6
sanitiseTimestamp()
S
75 2 4
initWebsiteIds()
S
69 2 7
getApiToInvalidateArchivedReport()
S
73 2 6
siteExists()
S
67 2 8
makeCliMulti()
S
62 1 12
setApiToInvalidateArchivedReport()
S
81 1 3
logInitInfo()
S
75 1 4
getLastSuccessRunTimestamp()
S
75 1 4
isMaintenanceModeEnabled()
S
78 1 3
initStateFromParameters()
S
76 1 4
setInvalidationTime()
S
70 1 6
setUrlToPiwik()
S
81 1 3
invalidateArchivedReportsForSitesThatNeedToBeArchivedAgain()
S
73 1 5
logFatalError()
S
77 1 4
getErrors()
S
82 1 3
setArchiveFilter()
S
81 1 3
deleteInvalidatedArchives()
S
80 1 3